package com.czk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/11/3 21:53
 */
@SpringBootApplication
@MapperScan(value = "com.czk.mapper")
@ComponentScan(basePackages = "com.czk") // 引入不是同一项目，包也不同的组件 例如引入service-util里面的swagger配置。这里爆红的原因是我们包都是以com.czk开头的
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.czk.cmn.feignclient")
@EnableRabbit
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
